package org.example.demo1;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

//https://blog.csdn.net/feinifi/article/details/119797099
@Configuration
public class WSConfig {
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {// 有了这个配置，启动springboot项目，就可以通过ws协议访问我们的websocket服务了。
        return new ServerEndpointExporter();
    }
}
